package com.doudou.collection.orm.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @ClassName User
 * @Description 用户实体类
 * @Author blue sky
 * @Date 2023/5/30 23:27
 * @Version 1.0
 */
@Data
@TableName("t_user")
public class User {
    @TableId(type = IdType.AUTO)
    private Long id;//用户id
    private String username;//用户名
    private String password;//密码
    private String icon;//头像
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime updateTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime createTime;
}
